/**
 * UserRefRoleEntity.java
 */
package org.yate.oa.model;

import java.io.Serializable;

/**
 * @author Yate
 * @date Nov 21, 2013
 * @description TODO
 * @version 1.0
 */
public class UserRefRoleEntity implements Serializable {

	private Long urId;
	private UserEntity user;
	private RoleEntity role;

	public UserRefRoleEntity() {
	}

	public UserRefRoleEntity(int uid, long rid) {
		this.user = new UserEntity();
		this.user.setId(uid);
		this.role = new RoleEntity();
		this.role.setRoleId(rid);
	}

	/**
	 * @return the urId
	 */
	public final Long getUrId() {
		return urId;
	}

	/**
	 * @param urId
	 *            the urId to set
	 */
	public final void setUrId(Long urId) {
		this.urId = urId;
	}

	/**
	 * @return the user
	 */
	public final UserEntity getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public final void setUser(UserEntity user) {
		this.user = user;
	}

	/**
	 * @return the role
	 */
	public final RoleEntity getRole() {
		return role;
	}

	/**
	 * @param role
	 *            the role to set
	 */
	public final void setRole(RoleEntity role) {
		this.role = role;
	}

}
